import {
	listall
} from '@/api/ipAddress'
const store = {
	state: {
		ipaddresslistOptions: []
	},
	getters: {
		getipaddresslistOptions(state) {
			return state.ipaddresslistOptions
		}	
	},
	mutations: {
		UPDATE_IPADDRESS_LIST(state, data) {
			state.ipaddresslistOptions = data
		}
	
	},
	actions: {
		setipaddresslistOptions({
			commit
		}) {
			listall()
				.then((response => {
					commit('UPDATE_IPADDRESS_LIST', response)
				}))
		}
	}
}

export default store
